package com.group.app.example.scheduler;

import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
@EnableScheduling
public class TestScheduler {




    //十点五十八
    @Scheduled(cron= "0 58 10 * * ?")
    public synchronized  void test() throws Exception{

    }

    //每天10，12，14点
    @Scheduled(cron= "0 0 10,12,14 * * ?")
    public synchronized  void test1() throws Exception{

    }


}
